package lab02.test02;

import java.util.Scanner;

public class Circle {


    public static void main(String[] args) {
        //属性
        float area;
        float round;
        float r;
        float PI = 3.1415f;

        System.out.println("Please input a number:");
        Scanner sc = new Scanner(System.in);
        System.out.println("Please input a number:");
        Circle cir = new Circle();
        //行为
        r =sc.nextInt();
        area =sc.nextInt();

        area =PI*r;
        area = area*r;
        round =2*PI*r;
        System.out.println("面积 = " + area);
        System.out.println("周长 = " + round);
    }
}
